/*!
 * \file jxbankagree_message.h
 *
 * \brief JXBANKAGREE消息解析
 *
 * All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.
 *
 * \version 1.0
 * \author songbb
 * \date 2017/04/20
 *
 */

#ifndef __JXBANKAGREE_MESSAGE_H_
#define __JXBANKAGREE_MESSAGE_H_

void jxbankagree_init_hash_trancode(void);

void jxbankagree_destroy_hash_trancode(void);

/*!
 * 解析JXBANKAGREE请求
 *
 * \param p_st_conn         (ct信息)
 * \param p_st_sess         (JXBANKAGREE的session信息)
 * \param p_st_jxbankagree_packet  (JXBANKAGREE数据包)
 * \param p_st_hash_report  (数据上报用)
 *
 * \return 0  失败\n
 *         1  成功
 *
 */
int jxbankagree_req(Conntrack *p_st_conn
                    , L7session_jxbankagree *p_st_sess
                    , L7_jxbankagree_packet *p_st_jxbankagree_packet
                    , Frhash_header *p_st_hash_report);

/*!
 * 解析JXBANKAGREE响应
 *
 * \param p_st_conn         (ct信息)
 * \param p_st_sess         (JXBANKAGREE的session信息)
 * \param p_st_jxbankagree_packet  (JXBANKAGREE数据包)
 * \param p_st_hash_report  (数据上报用)
 *
 * \return 0  失败\n
 *         1  成功
 *
 */
int jxbankagree_resp(Conntrack *p_st_conn
                    , L7session_jxbankagree *p_st_sess
                    , L7_jxbankagree_packet *p_st_jxbankagree_packet
                    , Frhash_header *p_st_hash_report);

#endif
